#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Copyright © 启明星辰 版权所有
# @Time    : 2023/11/6 22:28
# @Author  : 胡浩浩
# @File    : count_data_model.py
# @IDE     : PyCharm
# @description :
from pydantic import BaseModel
from tortoise import fields, models
class CountDataModel(models.Model):
    id = fields.IntField(pk=True)
    product_name = fields.CharField(max_length=255)
    product_version = fields.CharField(max_length=50)
    cover_rate = fields.FloatField(null=False)
    all_api_list = fields.JSONField()
    case_api_list = fields.JSONField()



class CountData(BaseModel):
    product_name: str
    product_version: str
    cover_rate: float
    all_api_list: str
    case_api_list: str